package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * Created by kelvin.nguyen on 6/25/14.
 */
public class PastDeal {
    private int id;
    private int orderId;
    private String shortName;
    private int price;
    private String imageUrl;
    private Date createdAt;
    private String statusName;
    private int status;

    @JsonProperty("Id")
    public void setId(int id) {
        this.id = id;
    }

    @JsonProperty("OrderId")
    public void setOrderId(int orderId) { this.orderId = orderId; }

    @JsonProperty("ShortName")
    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    @JsonProperty("Price")
    public void setPrice(int price) {
        this.price = price;
    }

    @JsonProperty("ImageUrl")
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @JsonProperty("TimeCreated")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="MM/dd/yyyy", timezone="ICT")
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @JsonProperty("StatusName")
    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    @JsonProperty("Status")
    public void setStatus(int status) { this.status = status; }

    public int getId() {
        return id;
    }

    public int getOrderId() { return orderId; }

    public String getShortName() {
        return shortName;
    }

    public int getPrice() {
        return price;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public String getStatusName() {
        return statusName;
    }

    public int getStatus() { return  status; }
}

